package com.facebook.datasource;

import com.facebook.common.internal.Preconditions;

public final class SimpleDataSource<T> extends AbstractDataSource<T> {
    public SimpleDataSource() {

    }

    public final boolean setFailure(Throwable throwable) {
        return super.setFailure(Preconditions.checkNotNull(throwable));
    }

    public final boolean setResult(T value, boolean isLast) {
        return super.setResult(Preconditions.checkNotNull(value), isLast);
    }
}

